﻿@{
    ViewBag.Title = "";
}
@model KingRoad.EPM.ProjectInfoEntity.PROJECT_SYSTEMCODE           
<script src="/Scripts/jQuery/jquery.validate.min.js" type="text/javascript"></script>
<script src="/Scripts/jQuery/jquery.validate.unobtrusive.min.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $("#form_permission_SystemCode_create").submit(function () {
            return false;
        });
        $("#txtParentName").val("@ViewBag.ParentName");
    });   
</script>
<div class="pageContentD">
    @{Html.EnableClientValidation();}
    @using (Html.BeginForm("Createing", "SystemCode", null, FormMethod.Post, new { onsubmit = "return validateCallback(this,dialogAdded_Permission_SystemCode);", @id = "form_permission_SystemCode_create", @class = "pageForm" }))
    {   
        <div class="pageFormContent" layouth="60">
            <table width="95%" class="tab01">
                <tr>
                    <td class="td1" style="width:25%;">
                        父节点：
                    </td>
                    <td>
                        @Html.HiddenFor(m => m.SYSTEMCODE_ID)
                        @Html.HiddenFor(m => m.SYSTEMCODE_PARENTID)
                        <input type="text" id="txtParentName" disabled="disabled" value="" onclick="return false;"
                            class="input02" />
                    </td>
                </tr>
                <tr>
                    <td class="td1">
                        编号：
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.SYSTEMCODE_CODE, new Dictionary<string, object> { { "class", "input02" } })
                        @Html.ValidationMessageFor(m => m.SYSTEMCODE_CODE)
                    </td>
                </tr>
                <tr>
                    <td class="td1">
                        名称：
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.SYSTEMCODE_NAME, new Dictionary<string, object> { { "alt", "请输入名称" }, { "class", "input02" } })
                        @Html.ValidationMessageFor(m => m.SYSTEMCODE_NAME)
                    </td>
                </tr>
                <tr>
                    <td class="td1">
                        单位：
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.SYSTEMCODE_UNIT, new Dictionary<string, object> { { "class", "input02" } })
                        @Html.ValidationMessageFor(m => m.SYSTEMCODE_UNIT)
                    </td>
                </tr>
                <tr>
                    <td class="td1">
                        完全编码：
                    </td>
                    <td>
                        @Html.TextBoxFor(m => m.SYSTEMCODE_INTACTCODE, new Dictionary<string, object> { { "class", "input02" } })
                        @Html.ValidationMessageFor(m => m.SYSTEMCODE_INTACTCODE)
                    </td>
                </tr>
                <tr>
                    <td class="td1">
                        备注：
                    </td>
                    <td>
                        @Html.TextAreaFor(m => m.SYSTEMCODE_DESCR, new Dictionary<string, object> { { "class", "input05" } })
                    </td>
                </tr>
            </table>
        </div>
        <div class='formBar'>
            <ul>
                <li>
                    <button type="submit" class="btn btn-success btn-sm" id="btnSave_Permission_SystemCode_Create">
                        保存</button>
                </li>
                <li>
                    <button type="button" class="close btn btn-default btn-sm">
                        取消</button>
                </li>
            </ul>
        </div>
    }
    @*</form>*@
</div>
